package com.blstudio;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class Schedules extends Activity {
	ArrayAdapter<String> arrayAdapter = null;
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setTheme(android.R.style.Theme_Light);
		setContentView(R.layout.schedules);
    }

	public void onStart(){
		
		super.onStart();
		ListView schedules = (ListView) findViewById( R.id.scheduleListview );
		
		try {
			arrayAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, HtmlParser.getInstance().getSchedules());
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		schedules.setAdapter(arrayAdapter);
    		
	}
    @Override 
    public void onBackPressed() { 
    	finish();    
    }
}
